package com.shen.driver;

/**
 * Author:shen
 * CreateDate:2020/5/11.
 * Function:
 */
public class Car {
    private int site;//座位数
    private int displacement;//排量

    public Car() {
    }

    public Car(int site, int displacement) {
        this.site = site;
        this.displacement = displacement;
    }

    public int getSite() {
        return site;
    }

    public void setSite(int site) {
        this.site = site;
    }

    public int getDisplacement() {
        return displacement;
    }

    public void setDisplacement(int displacement) {
        this.displacement = displacement;
    }

    /**
     * 启动方法
     */
    public void start(){
        System.out.println("汽车—————启动");

    }
    /**
     * 刹车方法
     */
    public void stop(){
        System.out.println("汽车-----------刹车");
    }

}
